:root {
    font-family:
        'MiSans',
        'PingFang SC',
        -apple-system,
        BlinkMacSystemFont,
        system-ui,
        Avenir,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light;
    color: #ffffff;
    --primary-color: #5a2a82; /* 较浅的深紫色 */
    --secondary-color: #703a9e; /* 较浅的中等紫色 */
    --accent-color: #7b2cbf;
    --light-accent: #b886c6; /* 更柔和的浅紫色强调色 */
    --bg-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

@font-face {
    font-family: 'MiSans';
    src: url('../assets/fonts/MiSans-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
    overflow-x: hidden; /* 防止水平滚动条 */
    font-family:
        'MiSans',
        'PingFang SC',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

#root {
    min-height: 100vh;
}

.trigger {
    font-size: 18px;
    line-height: 64px;
    padding: 0 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.trigger:hover {
    color: #1890ff;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 确保固定定位元素的层级 */
.ant-layout-header {
    z-index: 1000 !important;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 防止内容区域被固定 Header 遮挡 */
.ant-layout-content {
    overflow: visible;
}

/* 全局字体设置 */
* {
    font-family:
        'MiSans',
        'PingFang SC',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif !important;
}
